package org.example.rubbish.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Data
@NoArgsConstructor
public class PriceConfig {
    private Long id;
    private BigDecimal weightToPoints;
    private BigDecimal pointsToMoney;
    private Date createTime;
    private Date updateTime;
    private Long operator;

    public PriceConfig(Long id, BigDecimal weightToPoints, BigDecimal pointsToMoney, Date createTime, Date updateTime, Long operator) {
        this.id = id;
        this.weightToPoints = weightToPoints;
        this.pointsToMoney = pointsToMoney;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.operator = operator;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public BigDecimal getWeightToPoints() {
        return weightToPoints;
    }

    public void setWeightToPoints(BigDecimal weightToPoints) {
        this.weightToPoints = weightToPoints;
    }

    public BigDecimal getPointsToMoney() {
        return pointsToMoney;
    }

    public void setPointsToMoney(BigDecimal pointsToMoney) {
        this.pointsToMoney = pointsToMoney;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getOperator() {
        return operator;
    }

    public void setOperator(Long operator) {
        this.operator = operator;
    }
}